<?php
$this->breadcrumbs=array(
	'社区'=>array('community/index'),
	$type,
);
$this->menu=array(
	array('label'=>'创建话题', 'url'=>array('/topic/create', 'tid'=>DefineBox::TOPIC_CAT_NEWTHEME)),
	array('label'=>'关于投票', 'url'=>array('/topic/more', 'tid'=>DefineBox::TOPIC_CAT_VOTE)),
	array('label'=>'等待创建内容', 'url'=>array('/topic/more', 'tid'=>DefineBox::TOPIC_CAT_WAIT)),
	array('label'=>'关于网站', 'url'=>array('/topic/more', 'tid'=>DefineBox::TOPIC_CAT_BUILD)),
);
?>
<?php
	if($_GET['tid'] == DefineBox::TOPIC_CAT_WAIT){
		foreach ($dataProvider as $value){
			echo CHtml::link($value->title,array('/node/view', 'id'=>$value->id));
			echo " ";
		}
	}
	
	if($_GET['tid'] == DefineBox::TOPIC_CAT_VOTE){
		foreach ($dataVote as $value){
			echo CHtml::link($value->node->title, array('/site/viewpoll', 'id'=>$value->id, 'tid'=>$value->tid)).":";
			echo date('Y年m月d日',$value->start_time);
			echo "——";
			echo date('Y年m月d日',$value->finish_time);
			echo "<br>";
		}
	}	
	if($_GET['tid'] == DefineBox::TOPIC_CAT_BUILD){
		foreach ($dataBulid as $value){
			echo CHtml::link($value->title,array('view', 'id'=>$value->id));
			echo "<br>";
		}
	}
	if($_GET['tid'] == DefineBox::TOPIC_CAT_NEWTHEME){
		foreach ($dataNewtheme as $value){
			echo CHtml::link($value->title, array('view', 'id'=>$value->id));
			echo "<br>";
		}
	}
?>
